package com.zc.study.designPattern.行为型设计模式.ChainOfResponsibilityaPattern;

/**
 * 董事会类:具体处理者
 */
public class Congress extends Approver{
    public Congress(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if(request.getAmount()>=500000){
            System.out.println("召开" + this.name + "审批采购单:" + request.getNumber() + ",金额:"
                    + request.getAmount() + "元,采购目的:" + request.getPurpose() + "."); //处理请求
        }
    }
}
